-- show_msg.lua
-- Created by zouyb Jun/05/2015
-- 显示引导对话框

return {
    run = function(id)
        -- 显示引导对话框
        local msgList = table.copy(DungeonGuideM.query(id, "p1"));
        local headIconPath = DungeonGuideM.query(id, "p2");
        local pos = DungeonGuideM.query(id, "p3");
        local inEffect = DungeonGuideM.query(id, "in_effect");
        local outEffect = DungeonGuideM.query(id, "out_effect");

        require "game/ui/form/guide/UIGuideDialogue";
        local uiForm = UIGuideDialogue.create(headIconPath, msgList, pos, inEffect, outEffect);
        UIMgr.getCurrentScene():addForm(uiForm);
        AudioM.playFx("button_tiny");
    end,
};